Optimal. Leaf size=207 \[ \frac {c (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{2 (-a)^{3/2} \left (\sqrt {c} d-\sqrt {-a} e\right ) (1+n)}-\frac {c (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{2 (-a)^{3/2} \left (\sqrt {c} d+\sqrt {-a} e\right ) (1+n)}+\frac {e (d+e x)^{1+n} \, _2F_1\left (2,1+n;2+n;1+\frac {e x}{d}\right )}{a d^2 (1+n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 207, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {975, 67, 726,
70} \begin {gather*} \frac {c (d+e x)^{n+1} \, _2F_1\left (1,n+1;n+2;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{2 (-a)^{3/2} (n+1) \left (\sqrt {c} d-\sqrt {-a} e\right )}-\frac {c (d+e x)^{n+1} \, _2F_1\left (1,n+1;n+2;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{2 (-a)^{3/2} (n+1) \left (\sqrt {-a} e+\sqrt {c} d\right )}+\frac {e (d+e x)^{n+1} \, _2F_1\left (2,n+1;n+2;\frac {e x}{d}+1\right )}{a d^2 (n+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 67
Rule 70
Rule 726
Rule 975
Rubi steps
\begin {align*} \int \frac {(d+e x)^n}{x^2 \left (a+c x^2\right )} \, dx &=\int \left (\frac {(d+e x)^n}{a x^2}-\frac {c (d+e x)^n}{a \left (a+c x^2\right )}\right ) \, dx\\ &=\frac {\int \frac {(d+e x)^n}{x^2} \, dx}{a}-\frac {c \int \frac {(d+e x)^n}{a+c x^2} \, dx}{a}\\ &=\frac {e (d+e x)^{1+n} \, _2F_1\left (2,1+n;2+n;1+\frac {e x}{d}\right )}{a d^2 (1+n)}-\frac {c \int \left (\frac {\sqrt {-a} (d+e x)^n}{2 a \left (\sqrt {-a}-\sqrt {c} x\right )}+\frac {\sqrt {-a} (d+e x)^n}{2 a \left (\sqrt {-a}+\sqrt {c} x\right )}\right ) \, dx}{a}\\ &=\frac {e (d+e x)^{1+n} \, _2F_1\left (2,1+n;2+n;1+\frac {e x}{d}\right )}{a d^2 (1+n)}-\frac {c \int \frac {(d+e x)^n}{\sqrt {-a}-\sqrt {c} x} \, dx}{2 (-a)^{3/2}}-\frac {c \int \frac {(d+e x)^n}{\sqrt {-a}+\sqrt {c} x} \, dx}{2 (-a)^{3/2}}\\ &=\frac {c (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{2 (-a)^{3/2} \left (\sqrt {c} d-\sqrt {-a} e\right ) (1+n)}-\frac {c (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{2 (-a)^{3/2} \left (\sqrt {c} d+\sqrt {-a} e\right ) (1+n)}+\frac {e (d+e x)^{1+n} \, _2F_1\left (2,1+n;2+n;1+\frac {e x}{d}\right )}{a d^2 (1+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 167, normalized size = 0.81 \begin {gather*} \frac {(d+e x)^{1+n} \left (-\frac {c \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{\sqrt {-a} \sqrt {c} d+a e}+\frac {c \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{\sqrt {-a} \sqrt {c} d-a e}+\frac {2 e \, _2F_1\left (2,1+n;2+n;1+\frac {e x}{d}\right )}{d^2}\right )}{2 a (1+n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\left (e x +d \right )^{n}}{x^{2} \left (c \,x^{2}+a \right )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (d+e\,x\right )}^n}{x^2\,\left (c\,x^2+a\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________